package com.yunsc.order.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yunsc.common.serializer.TimestampToDateSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * 订单发货单记录表
 * 
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:50
 */
@Data
@TableName("yunsc_order_delivery")
public class YunscOrderDeliveryEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 发货单ID
	 */
	@TableId
	private Integer deliveryId;
	/**
	 * 订单ID
	 */
	private Integer orderId;
	/**
	 * 发货方式(10手动录入 20无需物流 30电子面单)
	 */
	private Integer deliveryMethod;
	/**
	 * 物流公司ID
	 */
	private Integer expressId;
	/**
	 * 物流单号
	 */
	private String expressNo;
	/**
	 * 电子面单模板内容
	 */
	private String eorderHtml;
	/**
	 * 商城ID
	 */
	private Integer storeId;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@JsonSerialize(using = TimestampToDateSerializer.class)
	private Integer createTime;

}
